package com.mymoney.exceptions;


public class CommunicationException extends Exception{

	private static final long serialVersionUID = 975683045240101418L;

    private Integer code;

    private String message;

    public CommunicationException(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
    
    public CommunicationException(String message) {
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }

}
